home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4897 < prev    next >
Encoding:
Text File  |  1996-08-05  |  3.7 KB  |  79 lines

  1. Path: informatik.tu-muenchen.de!fischerj
  2. From: fischerj@informatik.tu-muenchen.de (Juergen "Rally" Fischer)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: ChangeScreenBuffer()
  5. Date: 6 Mar 1996 13:35:37 GMT
  6. Organization: Technische Universitaet Muenchen, Germany
  7. Distribution: world
  8. Message-ID: <4hk4b9$pdm@sunsystem5.informatik.tu-muenchen.de>
  9. References: <4gl1e7$r6s@oreig.uji.es> <1996Feb24.154556.15537@imada.ou.dk> <4gt3dq$6fg@oreig.uji.es> <1996Feb28.190533.23231@imada.ou.dk> <4het4a$rbf@oreig.uji.es>
  10. NNTP-Posting-Host: hphalle0a.informatik.tu-muenchen.de
  11. To: ii202@rossegat.uji.es (Jorge Acereda Macia)
  12. Originator: fischerj@hphalle0a.informatik.tu-muenchen.de
  13.  
  14.  
  15. In article <4het4a$rbf@oreig.uji.es>, ii202@rossegat.uji.es (Jorge Acereda Macia) writes:
  16. |> Organization: Universitat Jaume I. Castell≤ de la Plana. Spain
  17. |> Lines: 50
  18. |> Message-ID: <4het4a$rbf@oreig.uji.es>
  19. |> References: <4gl1e7$r6s@oreig.uji.es> <1996Feb24.154556.15537@imada.ou.dk> <4gt3dq$6fg@oreig.uji.es> <1996Feb28.190533.23231@imada.ou.dk>
  20. |> NNTP-Posting-Host: @rossegat.uji.es
  21. |> X-Newsreader: TIN [version 1.2 PL2]
  22. |> 
  23. |> Bjorn Reese (breese@imada.ou.dk) wrote:
  24. |> > Jorge Acereda Macia (ii202@rossegat.uji.es) wrote:
  25. |> > > Bjorn Reese (breese@imada.ou.dk) wrote:
  26. |> 
  27. |> > > There's is another issue... Pressing the depth gadget will freeze
  28. |> > > the game/demo until you release it. Any solution?
  29. |> 
  30. |> > None, that I can think of. However, chances are that if the user
  31. |> > is pressing the depth gadget, (s)he's isn't paying attention to
  32. |> > the game/demo and probably wants it to freeze.
  33. |> 
  34. |> I mean that if you keep pressing the depth gadget a couple of
  35. |> seconds all the calls to ChangeScreenBuffer() during that time
  36. |> will fail. I've been watching demos and the usual approach is
  37. |> to exit the demo as soon as the user presses the mousebutton,
  38. |> so the problem is solved :-) But for games... It's a different
  39. |> world. Perhaps opening a backdrop window will solve the problem...
  40. |> Will try it tonight.
  41. |> 
  42. |> > > > some example in NDK called doublebuffer.c, I believe) However, this
  43. |> > > > can give some strange results under some circumstances, so I prefer
  44. |> > > > WaitTOF().
  45. |> > >
  46. |> > > I had no problem with it... What problems do you refer to?
  47. |> 
  48. |> > Let's see if I can remember it...
  49. |> 
  50. |> > Put your double-buffering screen behind another. Drag the frontmost
  51. |> > screen down 20-30 rasterlines. Watch your double-buffering swap at
  52. |> > an amazingly high rate.
  53. |> 
  54. |> Yeah, I remember experiencing this nasty bug in my code, but it was
  55. |> all my fault. It was due to a bad replyport assignment (I was assigning
  56. |> the DispPorts to the ports intended to receive the SafeMessage). I
  57. |> fixed this and it worked fine. Check that assignments in your code.
  58. |> 
  59. |> BTW I'm writing some sample code: OpenDBScreen(), CloseDBScreen() and
  60. |> ChangeDBScreen() (and one more function will probably be needed to
  61. |> wait for the DispMessage). If anyone is interested (or if anyone
  62.  
  63. yeah that's something for my coder homepage! :)
  64.  
  65. |> has already written such a thing and I'm reinventing the wheel) 
  66. |> drop me a line.
  67. |> 
  68. |> Greets,
  69. |> --
  70. |>  ---------------------------- --------------------------------------------
  71. |> |       Jorge Acereda        |      Dream the same thing everynight       |
  72. |> |   ii202@rossegat.uji.es    |       I see our freedom in my sight        |
  73. |> |       Intel Outside        |     No locked doors, no windows barred     |
  74. |> |        Amiga Rules         |   No things to make my brain seem scarred  |
  75. |>  ---------------------------- --------------------------------------------
  76. ------------------------------------------------------------------------
  77.    fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer)   =:)
  78.  
  79.